#pragma once

#include <linux/types.h>
#include <linux/timer.h>
#include <linux/list.h>

struct clocksource
{
    struct list_head list;
    uint64_t mask;

    uint64_t (*read)(struct clocksource *cs);
    int (*enable)(struct clocksource *cs);
    void (*disable)(struct clocksource *cs);
};


int clocksource_register_hz(struct clocksource *cs, unsigned int hz);
